package data_structure;

public class BTNode<T extends Number> implements Comparable<BTNode>{
	public T val;
	public BTNode<T> left = null;
	public BTNode<T> right = null;
	
	public BTNode(T val){
		this.val = val;
	}
	
	public BTNode(){
		
	}

	@Override
	public int compareTo(BTNode o) {
		return (int) (this.val.doubleValue()-o.val.doubleValue());//ascending order
	}
}
